package com.ht.medicaltreatment.adapter

import android.graphics.Color
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.ReturnRecordDetailBean
import com.ht.medicaltreatment.bean.ReturnRecordTimeOutDetailBean

class ReturnTimeOutDetailAdapetr:BaseQuickAdapter<ReturnRecordTimeOutDetailBean,BaseViewHolder>(R.layout.item_return_detail_layout) {
    override fun convert(holder: BaseViewHolder, item: ReturnRecordTimeOutDetailBean) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvSampleName,item.name)
        holder.setText(R.id.tvSampleLocation,item.sampleStru.detailLocation)
        holder.setTextColor(R.id.tvCode,Color.RED)
        holder.setTextColor(R.id.tvSampleName,Color.RED)
        holder.setTextColor(R.id.tvSampleLocation,Color.RED)
    }
}
